<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>请应⽤ prototype 写⼀个类继承多个类的案例</title>
</head>
<body>
  <script>
    function sak(name, age) {
      this.name = name
      this.age = age
      // 定义一个 info 函数
      this.info = function() {
        document.writeln('姓名：' + this.name + '年龄：' + this.age)
      }
    }
    // 创建 sak 类的实例对象
    var p1 = new sak('yu luo', 18)
    // 调用 info 方法
    p1.info()
  </script>
</body>
</html>